package com.rop.znyx.search.service;

import com.rop.znyx.model.search.SkuEs;
import com.rop.znyx.vo.search.SkuEsQueryVo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import java.util.List;

/**
 * Created with IntelliJ IDEA
 * User: Rop
 * Date: 2023/6/30
 * Time: 17:46
 * Description:
 */
public interface SkuService{

    /**
     * 上架商品列表
     */
    void upperSku(Long skuId);

    /**
     * 下架商品列表
     */
    void lowerSku(Long skuId);

    /**
     * 查询上架商品
     */
    List<SkuEs> findHotSkuList();

    Page<SkuEs> search(Pageable pageable, SkuEsQueryVo skuEsQueryVo);

    void incrHotScore(Long skuId);
}
